package com.cc.service.impl;

import com.cc.dao.UserDao;
import com.cc.dao.impl.UserDaoImpl;
import com.cc.entity.User;
import com.cc.service.UserService;

public class UserServiceImpl implements UserService {
    UserDao userDao = new UserDaoImpl();
    @Override
    public User login(String username, String password) {
        return userDao.findUserByNameAndPassword(username, password);
    }
}
